<?php
use yii\widgets\ActiveForm;
use yii\helpers\Html;
?>
<?php 
$form  = ActiveForm::begin([
		//'method'=>'get',//默认是post
		'enableClientScript'=>TRUE,
		'options'=>[
			'enctype'=>'multipart/form-data',
			'class'=>'form-horizontal'
		],
		'fieldConfig'=>[
			'template'=>'{label}<div class="col-sm-9">{input}{hint}<span class="help-inline col-xs-12 col-sm-7">{error}</span></div>',
			'labelOptions'=>['class'=>'col-sm-3 control-label no-padding-right'],
			'inputOptions'=>['class'=>'col-xs-10 col-sm-2'],
			'errorOptions'=>['class'=>'help-block middle']
		]		
]);
?>
<?= $form->field($supplierModel,'supplierid')?>
<?= $form->field($supplierModel,'suppliername')?>
<?= $form->field($supplierModel,'supplierab')->textInput(['readonly'=>'readonly'])?>

<?= $form->field($supplierModel,'address')?>
<?= $form->field($supplierModel,'linkname')?>
<?= $form->field($supplierModel,'linktel')?>
<?= $form->field($supplierModel,'qq')?>
<?= $form->field($supplierModel,'email')?>
<?= $form->field($supplierModel,'sortid')?>
<?= $form->field($supplierModel,'state')->radioList([
			'0'=>'不启用',
			'1'=>'启用'
])?>
<?= Html::input('hidden','action','addsupplier')?>
<label class="col-sm-3 control-label no-padding-right" for="testform-age"></label>
<?= Html::submitButton('提交',[
		'class'=>'btn btn-danger'
		
]) ?>
&nbsp;&nbsp;&nbsp;&nbsp;
<?= Html::resetButton('重置',[
		'class'=>'btn btn-danger'
])?>

<?php 
$form = ActiveForm::end();
?>